package utils

import "time"

func NewResourceMetaData() *ResourceMetaData {
	return &ResourceMetaData{
		CreatedAt: time.Now(),
	}
}

type ResourceMetaData struct {
	Id uint `json:"id" gorm:"primaryKey;column:id"`
	// 用户名
	CreateBy string `json:"create_by" gorm:"column:create_by;type:varchar(100)"`
	// 创建时间
	CreatedAt time.Time  `json:"created_at" gorm:"column:created_at;not null"`
	UpdatedAt *time.Time `json:"updated_at" gorm:"column:updated_at"`
}
